<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>用户中心_{$web_name}</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta name="Keywords" content="用户中心" />
		<meta name="Description" content="用户中心" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1" />
		<meta name="format-detection" content="telephone=no">
		<tc_include file="Public:head" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc/Home/User/css/user.css" />
		<link rel="stylesheet" type="text/css" href="/themes/wnsc/Home/User/css/user_common.css" />
		
	</head>

	<body>

		<tc_include file="Public:nav" />
		<div class="w990" id="content" style="background: none;">
			<div class="margin-w1210 clearfix">
				<div class="w">
					<div class="breadcrumb clearfix">
						<a href="/" class="index">首页</a> <span class="crumbs-arrow">&gt;</span> <span class="last">用户中心</span></div>
				</div>
				<div class="blank"></div>
				<tc_include file="Public:user_left" />
				<div class="user-right">
					<div class="box">
						<div class="tabmenu">
							<ul class="tab pngFix">
								<li class="first active">我要代言</li>
							</ul>
						</div>
						<div class="alert alert-success">
							<h4>操作提示：</h4>
							<ul>
								<li>您可查看您可以代言的产品</li>
							</ul>
						</div>
						<style type="text/css">
							.user-right .tabmenu{margin-bottom: 0;}
							.goods_image{width: 17%;height: 50px;float: left;}
							.goods_name2{float: left; width: 80%;height: 50px;line-height: 50px;overflow: hidden;margin-left: 1%;}
						</style>
						<php>if($rs||$html_angel){</php>
						<div>
							<php>if($type_html_status){</php>
							<div style="float: left;padding-bottom: 6px;width: 50%;">
								<p style="float: left;width: 100%;font-size: 15px;font-weight: 800;padding: 5px 1px;">天使代言分类</p>
								<ul>
									<foreach name="html_angel" item="v">
										<php>
											if($v['type']==3){
												$angel_rs=M('ticket_type')->find($v['type_id']);
										</php>
											<a href="{:U('list/index',array('id'=>$angel_rs['id'],'types'=>'daiyan'))}" style="background: #fbca60;padding: 5px;float: left;margin: 4px 4px 0 0;color: #fff;">{$angel_rs['name']}</a>
										<php>}</php>
									</foreach>
								</ul>
							</div>
							<php>}</php>
							<php>if($store_html_status){</php>
							<div style="float: left;padding-bottom: 6px;width: 50%;">
								<p style="float: left;width: 100%;font-size: 15px;font-weight: 800;padding: 5px 1px;">天使代言店铺</p>
								<ul>
									
									<foreach name="html_angel" item="v">
										<php>
											if($v['type']==2){
												$angel_rs=get_store($v['type_id']);
										</php>
											<a href="{:U('store/type',array('id'=>$angel_rs['id'],'types'=>'daiyan','shop_id'=>0))}" style="background: #e62d71;padding: 5px;float: left;margin: 4px 4px 0 0;color: #fff;">{$angel_rs['title']}</a>
										<php>}</php>
									</foreach>
								
								</ul>
							</div>
							<php>}</php>
							<table width="100%" border="0" cellspacing="0" cellpadding="0" class="bought-table">
								<thead>
									<tr class="col-name">
										<th width="52%" style="border-left: 1px solid #E6E6E6;">商品名称</th>
										<th width="15%">售价</th>
										<th width="15%">代言奖励</th>
										<th width="18%" style="border-right: 1px solid #E6E6E6;">立即代言</th>
										
									</tr>
								</thead>
								<tbody class="close-order" id="list_address">
									<foreach name="html_angel" item="v">
										<php>
											if($v['type']==1){
												$angel_rs=get_shop_info($v['type_id']);
										</php>
											<tr class="order-bd last">
												<td align="center" class="baobei no-border-right order_goods_info">
													<div class="last"><img class="goods_image" src="{$angel_rs.image}" style="max-width: 17%;"/><p class="goods_name2">【天使代言】{$angel_rs.title}</p></div>
												</td>
												<td align="center" class="baobei no-border-right order_goods_info">
													<div class="last">{$angel_rs.price}</div>
												</td>
												<td align="center" class="baobei no-border-right order_goods_info">

													<div class="last">
														<php>if($angel_rs['envelope_type']==0){</php>
															{$angel_rs.redenvelope}
														<php>
															}else{
																$envelope_product=get_shop_info($angel_rs['envelope_product_id']);
														</php>
																{$envelope_product.title}
														<php>}</php>
													</div>
												</td>
												<td align="center" class="baobei no-border-right order_goods_info">
													<a href="{:U('shop/index',array('id'=>$angel_rs['id']))}" style="background: red;color: #fff;padding: 5px 7px;border-radius: 4px;">立即赚钱</a>
												</td>
												
											</tr>
										<php>}</php>
									</foreach>
									<foreach name="rs" item="v">
									<tr class="order-bd last">
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last"><img class="goods_image" src="{$v.image}" style="width:auto;"/><p class="goods_name2">{$v.title}</p></div>
										</td>
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last">{$v.price}</div>
										</td>
										<td align="center" class="baobei no-border-right order_goods_info">
											<div class="last">
													<php>if($v['envelope_type']==0){</php>
															{$v.redenvelope}
														<php>
															}else{
																$envelope_product=get_shop_info($v['envelope_product_id']);
														</php>
																{$envelope_product.title}
														<php>}</php>
											</div>
										</td>
										<td align="center" class="baobei no-border-right order_goods_info">
											<a href="{:U('shop/index',array('id'=>$v['id']))}" style="background: red;color: #fff;padding: 5px 7px;border-radius: 4px;">立即赚钱</a>
										</td>
										
									</tr>
									</foreach>
								</tbody>
							</table>
						</div>
						<div class="blank10"></div>
						<div id="pagination" class="page">
							<div class="page-wrap fr">
								<div class="total">共<span id="totalcount">{$count}</span>条</div>
							</div>
							<style>
							.page-num .next {margin-left:0 ;}
							.page-num a{ float: left;text-align: center;border: 1px solid #eee;height: 35px;line-height: 35px;margin-right:4px;}
							.page-num span{float: left; text-align: center; height: 37px; line-height: 37px; width: 37px; margin-right:4px; background: red; color: #fff;}
							</style>
							<div class="page-num fr">
								{$page}
							</div>
						</div>
						<php>}</php>
							<php>if($rs==null&&$html_angel==null){</php>
								<style>
								/*空记录的展示*/
								.tip-box{ width: 1000px; height: 300px; margin: 50px auto 0; text-align: center;}
								.tip-box .tip-icon{ display: block; max-width: 100%; max-height: 100%; margin: 0 auto;}
								.tip-box .tip-text{ line-height: 20px; padding: 10px; font-size: 14px;}
								.tip-box .tip-text p{ height: 40px; line-height: 40px;}
	
								</style>
								<div class="tip-box">
									<img src="/themes/wnsc/Home/List/images/noresult.png" class="tip-icon">
									<div class="tip-text">没有符合条件的记录</div>
								</div>
							<php>}</php>
					</div>
				</div>

			</div>
		</div>
		<div style="clear: both;"></div>

		<tc_include file="Public:footer" />

	</body>

</html>